package com.company.oa.workflow.dto.document;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class DocumentDTO {
    
    private Long id;
    
    @NotBlank(message = "标题不能为空")
    private String title;
    
    @NotBlank(message = "内容不能为空")
    private String content;
    
    @NotNull(message = "公文类型不能为空")
    private Integer documentType;
    
    @NotBlank(message = "发文部门不能为空")
    private String issuingDepartment;
    
    private Date issuingDate;
    
    private String attachmentPath;
    
    private Integer status;
} 